
<?php $ancestors = $node->getAncestors(); ?>

<ul class="sntl-breadcrumbs">
  
  <li class="home">
    <?php echo link_to( 'Home', '@homepage' ); ?>
  </li>
  
  <?php if ( $ancestors ): ?>

    <?php foreach ( $ancestors as $ancestor ): ?>
  
      <?php if ( $ancestor->getLevel() > 0 ): ?>

        <li class="level">
          <?php echo sntl_link_to( $ancestor->getSlug(), $ancestor->getNode() ); ?>
        </li>
      
      <?php endif; ?>

    <?php endforeach; ?>

    <li class="location">
      <?php echo $node->getRecord()->getSlug(); ?>
    </li>

  <?php endif; ?>

</ul>
